package com.ebt.m.customer.entity;

import android.text.TextUtils;

import java.io.Serializable;

/**
 * 品牌
 * Created by archer.qi on 2016/12/9.
 */
public class CompanyBean implements Serializable {

    /* 公司ID */
    private String id;

    /* 公司名称 */
    private String name;

    /* 公司简称 */
    private String shortName;

    /* 公司LOGO */
    private String logoUrl;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getShortName() {
        return shortName;
    }

    public void setShortName(String shortName) {
        this.shortName = shortName;
    }

    public String getLogoUrl() {
        return logoUrl;
    }

    public void setLogoUrl(String logoUrl) {
        this.logoUrl = logoUrl;
    }


    public String getCompanyName() {
        if (!TextUtils.isEmpty(shortName)) {
            return shortName;
        }
        if (!TextUtils.isEmpty(name)) {
            return name;
        }
        return "";
    }

}
